package org.example.shop_front_api.service.impl;

import org.example.shop_front_api.entity.Setting;
import org.example.shop_front_api.mapper.SettingMapper;
import org.example.shop_front_api.service.SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SettingServiceImpl implements SettingService {

    @Autowired
    private SettingMapper settingMapper;
    @Override
    public int insertSetting(Setting setting) {
        return settingMapper.insertSetting(setting);
    }

    @Override
    public int updateSetting(Setting setting) {
        return settingMapper.updateSetting(setting);
    }

    @Override
    public Setting getSettingByMemberId(int memberId) {
        return settingMapper.getSettingByMemberId(memberId);
    }
}
